<div class="album wp-20" ui-view="container">
    <div ng-if="!noPermission">
        <div class="head_title">
            <span class="tit-color">播控方案</span>
        </div>
        <div class="searchWapper white-background">
            <div class="form-group searchLump">
                <div class="searchTitle">操作：</div>
                <div class="search-select">
                    <button class="btn btn-primary" style="margin-left: 20px" ui-sref="main.playPlan.manage">新建播控方案</button>
                    <button class="btn btn-primary" style="margin-left: 20px" ui-sref="main.playPlan.playChannel({pageNo:1,pageSize:10})">播控渠道管理</button>
                </div>

            </div>
        </div>

        <div class="white-background" style="margin:15px  0">

            <table class="table table-bordered table-hover table-page">

                <thead>
                <tr>

                    <th>方案_ID</th>
                    <th>方案名称</th>
                    <th>专辑数</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                    <th>操作</th>

                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="plan in planList">


                    <td>
                        {{plan.id}}
                    </td>
                    <td>
                        {{plan.name}}
                    </td>
                    <td>
                        {{plan.albumNums}}
                    </td>
                    <td>
                        {{plan.cName}}
                    </td>
                    <td>
                        {{plan.cTime}}
                    </td>


                    <td>
                        <a class="time-out" ui-sref="main.playPlan.albums({planId:plan.id,pageNo:1})" ng-show="plan.albumNums">专辑</a>
                        <a class="time-out not-circle"  ng-show="!plan.albumNums">专辑</a>
                        <a class="time-out" ui-sref="main.playPlan.manage({planId:plan.id})" ng-show="plan.id>2">设置</a>
                        <a class="time-out not-circle" ng-hide="plan.id>2">设置</a>

                        <a class="time-out"  ng-show="plan.id>2&&!plan.albumNums" ng-click="delete(plan.id)">删除</a>
                        <a class="time-out not-circle"  ng-hide="plan.id>2&&!plan.albumNums" >删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <div class="panel-footer paging">
            <s-pagination conf="paginationConf"></s-pagination>
        </div>

    </div>


    <div ng-if="noPermission" ng-include="'templates/no-permission.html'">

    </div>

    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>
